import request from '@/utils/request'

// 部门流程关联列表
export function flowLists(params?: Record<string, any>) {
    return request.get({ url: '/deptFlow/list', params })
}
// 部门流程关联列表
export function deptFlowLists(params?: Record<string, any>) {
    return request.get({ url: '/deptFlow/deptList', params })
}
//获取详情
export function deptFlowDetail(params?: Record<string, any>) {
    return request.get({ url: '/deptFlow/detailByAll', params })
}

//用户列表
export function deptUsersList(params?: Record<string, any>) {
    return request.get({ url: '/system/admin/all', params })
}
//角色列表
export function deptRoleList(params?: Record<string, any>) {
    return request.get({ url: '/system/role/all', params })
}
//岗位列表
export function deptJobList(params?: Record<string, any>) {
    return request.get({ url: '/system/post/all', params })
}


// 部门流程关联详情
export function flowDetail(params: Record<string, any>) {
    return request.get({ url: '/deptFlow/detail', params })
}

// 部门流程关联新增
export function flowAdd(params: Record<string, any>) {
    return request.post({ url: '/deptFlow/add', params })
}

// 部门流程关联编辑
export function flowEdit(params: Record<string, any>) {
    return request.post({ url: '/deptFlow/edit', params })
}

// 部门流程关联删除
export function flowDelete(params: Record<string, any>) {
    return request.post({ url: '/deptFlow/del', params })
}

//获取当前流程
export function detailByDeptId(params: Record<string, any>) {
    return request.get({ url: '/deptFlow/detailByDeptId', params })
}

